const redirect = { 
    path: '/index/customer', 
    redirect: '/index/customer/clientInfo'
} // 访问路由重定向
const pagePath = {
    path: '/index/customer',
    component: import('@/views/customer/Customer.vue'),
    name: 'Customer',
    children: [
        {
            path: '/index/customer/clientInfo',
            component: import('@/views/customer/clientInfo/ClientInfo.vue'),
            name: 'ClientInfo'
        },
        {
            path: '/index/customer/allocation',
            component: import('@/views/customer/allocation/Allocation.vue'),
            name: 'Allocation'
        },
        {
            path: '/index/customer/loss',
            component: import('@/views/customer/loss/Loss.vue'),
            name: 'Loss'
        },
        {
            path: '/index/customer/itemHandover',
            component: import('@/views/customer/itemHandover/ItemHandover.vue'),
            name: 'ItemHandover'
        },            
        {
            path: '/index/customer/recycleBin',
            component: import('@/views/customer/recycleBin/RecycleBin.vue'),
            name: 'RecycleBin'
        },
        {
            path: '/index/customer/customerSetting',
            component: import('@/views/customer/customerSetting/CustomerSetting.vue'),
            name: 'CustomerSetting'
        },        
    ]
} // 访问路由路径
const parent = '/index'
const levelOne = false // 是否是一级路由
const customerRouter = {
    redirect,
    pagePath,
    parent,
    levelOne
}
export {
    customerRouter
}
